<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/vue.js"></script>
</head>
<body>
   <div id="div">
       <input type="button" @click="cli" value="按钮">
       <p ref="pv">{{info}}</p>
   </div>
</body>
<script>
   var vm = new Vue({
       el:"div",
       data:{
           info:"123"
       },
       methods:{
           cli:function () {
               //获取p标签的dom对象
               var pDom = this.$refs.pv;
               this.info = "ABC";
           }
       }
   });
</script>
</html>
